﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using JobHunter.Model.Repository;

namespace JobHunter.Web.Controllers
{
    public class EmployerController : Controller
    {
    	private EmployerRepository _employerRepository = null;

		public EmployerController()
		{
			_employerRepository = new EmployerRepository();
		}

        public ActionResult Index()
        {
        	var employers = _employerRepository.Get(e => true);
			return View(employers);
        }

		public ActionResult Download()
		{

			return View();
		}
    }

	public class DownloadViewModel
	{
		[Required(ErrorMessage = "Required")]
		public string What { get; set; }

		[Required(ErrorMessage = "Required")]
		public string Where { get; set; }
	}
}
